![]() |
InsetRgn |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Shrinks or expands a region.
void InsetRgn ( rgn, SInt16 dh, SInt16 dv );
A handle to the region to alter.
The horizontal distance to move points on the left and right boundaries in toward or outward from the center.
The vertical distance to move points on the top and bottom boundaries in toward or outward from the center.
The InsetRgn function moves all points on the region boundary of the region whose handle you pass in the rgn parameter inward by the vertical distance that you specify in the dv parameter and by the horizontal distance that you specify in the dh parameter. If you specify negative values for dh or dv, the InsetRgn function moves the points outward in that direction.
The InsetRgn function leaves the region’s center at the same position, but moves the outline in (for positive values of dh and dv) or out (for negative values of dh and dv). Using InsetRgn on a rectangular region has the same effect as using the InsetRect function.
The InsetRgn function temporarily uses heap space that’s twice the size of the original region.
The InsetRgn function may move or purge memory blocks in the application heap; do not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)